package org.sikyon.chocolatebiscuit.datamarket.inmemory;

import org.sikyon.chocolatebiscuit.datamarket.Store;
import org.sikyon.chocolatebiscuit.model.entities.User;

import java.util.Collection;

class InMemoryUserStore implements Store<User, String> {

    @Override
    public Collection<? extends User> getAll() {
        return InMemoryMarket.users();
    }

    @Override
    public User get(String email) {
        return null;
    }

    @Override
    public void save(User user) {
        InMemoryMarket.users().add(user);
    }

    @Override
    public void update(User user) {

    }

    @Override
    public void delete(User user) {
    }
}
